package com.example.project.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class User {
    @NotNull
   private Integer id;// 主键id

   private String username;//用户名
    @JsonIgnore
   private String password;//密码
   @NotEmpty
   private String name; //姓名

}
